var success = {};

success.getHeight = function () {
    var height = $(document).height();
    window.parent.index.iframeResize(height);
}

success.init = function(){
    success.getHeight();
}

$(document).ready(function() {
    success.init();
});